package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_pvp", desc = "海神岛-pvp日志", autoSave = true, dataUpload = true, eventName = "seagod_peobattle", uploadCk = true, isCross = true)
public class LogCrossHsIslandPvp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "guild_id")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "目标商会ID", dataAttribute = "seagod_batguild")
    private String targetUnionId;

    @FieldTypeAnnotation(desc = "被攻击用户ids", dataAttribute = "seagod_batuid")
    private String targetUserIds;

    @FieldTypeAnnotation(desc = "船只战力加成值千分比", dataAttribute = "seagod_boatadd")
    private int boatAddRate;

    @FieldTypeAnnotation(desc = "玩家当前buff（buffId=数量;buffId=数量;）", dataAttribute = "seagod_buffadd")
    private String buffs;

    @FieldTypeAnnotation(desc = "击败人数", dataAttribute = "seagod_batnum")
    private int winNum;

    @FieldTypeAnnotation(desc = "积分", dataAttribute = "seagod_getscore")
    private long score;

    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "seagod_get")
    private String reward;

    public LogCrossHsIslandPvp(int activityId, int groupId, String unionId, long userId, String targetUnionId, String targetUserIds, int boatAddRate, String buffs, int winNum, long score, String reward) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.targetUnionId = targetUnionId;
        this.targetUserIds = targetUserIds;
        this.boatAddRate = boatAddRate;
        this.buffs = buffs;
        this.winNum = winNum;
        this.score = score;
        this.reward = reward;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
